package com.neuedu.web.vo;

import com.neuedu.web.po.MenuPO;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author 金山
 * 项目：his-server
 * site: https://blog.fulfill.com.cn
 * 描述
 * @data 2024/11/2514:50
 */
public class MenuVO {

   private Long menuId;
    private String       menuName;
   private String url;
   private String path;
   private String level;
   private Long parentId;
   private String del;
   private Date createtime;
    private Integer show;


   // private boolean hasChildren
   private List<MenuPO> children = new ArrayList();

    public MenuVO() {
    }

    public MenuVO(Long menuId, String menuName, String url, String path,String level, Long parentId, String del, Date createtime) {
        this.menuId = menuId;
        this.menuName = menuName;
        this.url = url;
        this.level = level;
        this.path = path;
        this.parentId = parentId;
        this.del = del;
        this.createtime = createtime;
    }

    public MenuVO(Long menuId, String menuName, String url, String path, String level, Long parentId, String del, Date createtime, Integer show, List<MenuPO> children) {
        this.menuId = menuId;
        this.menuName = menuName;
        this.url = url;
        this.path = path;
        this.level = level;
        this.parentId = parentId;
        this.del = del;
        this.createtime = createtime;
        this.show = show;
        this.children = children;
    }

    public Long getMenuId() {
        return menuId;
    }

    public void setMenuId(Long menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getDel() {
        return del;
    }

    public void setDel(String del) {
        this.del = del;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public List<MenuPO> getChildren() {
        return children;
    }

    public void setChildren(List<MenuPO> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "MenuVO{" +
                "menuId=" + menuId +
                ", menuName='" + menuName + '\'' +
                ", url='" + url + '\'' +
                ", path='" + path + '\'' +
                ", level='" + level + '\'' +
                ", parentId=" + parentId +
                ", del='" + del + '\'' +
                ", createtime=" + createtime +
                ", show=" + show +
                ", children=" + children +
                '}';
    }

    public void setShow(Integer show) {
        this.show = show;
    }

}
